﻿using System;

namespace SimpleORMNET.Attributes
{
    /// <summary>
    /// This attribute specifies name of column from which value will be mapped to property.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
    public sealed class Column : Attribute
    {
        public string Name { get; private set; }

        public Column(string name)
        {
            this.Name = name;
        }
    }
}